import { defineConfig } from "vite";

const path = require("path");

function resolve(dir) {
	return path.join(__dirname, dir);
}
import VueSetupExtend from "vite-plugin-vue-setup-extend";
import uni from "@dcloudio/vite-plugin-uni";
// https://vitejs.dev/config/
export default defineConfig({
	plugins: [
		uni({
			vueOptions: {
				reactivityTransform: true, // 开启响应式语法糖
			},
		}),
		VueSetupExtend()
	],
	resolve: {
		alias: { "@": resolve("src") },
	},
	// css: {
	// 	preprocessorOptions: {
	// 		scss: {
	// 			additionalData: `@import "@/styles/common.css";`
	// 		}
	// 	},
	// }

});